package nowCoder;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

public class HJ42 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long x = in.nextLong();
        int n = 0;
        ArrayList<String> l = new ArrayList<>();
        HashMap<Long,String> gmap = new HashMap<>();
        gmap.put(1L,"one");
        gmap.put(2L,"two");
        gmap.put(3L,"three");
        gmap.put(4L,"four");
        gmap.put(5L,"five");
        gmap.put(6L,"six");
        gmap.put(7L,"seven");
        gmap.put(8L,"eight");
        gmap.put(9L,"nine");
        gmap.put(10L,"ten");
        gmap.put(11L,"eleven");
        gmap.put(12L,"twelve");
        gmap.put(13L,"thirteen");
        gmap.put(14L,"fourteen");
        gmap.put(15L,"fifteen");
        gmap.put(16L,"sixteen");
        gmap.put(17L,"seventeen");
        gmap.put(18L,"eighteen");
        gmap.put(19L,"nineteen");
        HashMap<Long,String> smap = new HashMap<>();
        smap.put(2L,"twenty");
        smap.put(3L,"thirty");
        smap.put(4L,"forty");
        smap.put(5L,"fifty");
        smap.put(6L,"sixty");
        smap.put(7L,"seventy");
        smap.put(8L,"eighty");
        smap.put(9L,"ninety");
        while(x % 1000 != 0){
            if (n == 1){
                l.add("thousand");
            }
            if (n == 2){
                l.add("million");
            }
            long xx = x%1000;
            if (xx % 100 > 0) {
                if (xx % 100 < 20)
                    l.add(gmap.get(xx % 100));
                else {
                    if (xx % 10 > 0)
                        l.add(gmap.get(xx % 10));
                    l.add(smap.get(xx/10 % 10));
                }
            }
            xx = xx/100;
            if (xx % 10 > 0) {
                if (l.size() != 0)
                    l.add("and");
                l.add("hundred");
                l.add(gmap.get(xx % 10));
            }
            n++;
            x=x/1000;
        }
        for (int i = l.size()-1; i >= 0; i--) {
            System.out.print(l.get(i)+" ");
        }
    }
}
